<extend name="Index/index" />
<block name="mycss">
    <link rel="stylesheet" href="__PUBLIC__/css/People.css">
</block>
<block name="main">

    <div class="container">
        <div id="row">
            <div class="col-md-8 col-md-offset-1 list-group pad0">
                <div class="col-md-12 list-group-item">

                    <form action="<{:U('People/update')}>" method="post" enctype="multipart/form-data">
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt30 h4">
                                <b>头像:</b>
                            </div>
                            <div class="col-md-2 mt10 pad10">
                                <img src="__PUBLIC__/imgs/<{$user['image']}>" type="button" class="img-responsive img-rounded center-block" data-toggle="modal" data-target="#headModal" title="头像上传">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt20 ">
                                性别:
                            </div>
                            <div class="col-md-2 mt20 ">
                                <input type="radio" name="sex" value="0"
                                    <if condition="$user['sex'] eq 0">checked</if>
                                >女
                                <input type="radio" name="sex" value="1"
                                    <if condition="$user['sex'] eq 1">checked</if>
                                >男
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt10 ">
                                一句话介绍:
                            </div>
                            <div class="col-md-5 mt10 ">
                                <input class="form-control" type="text" name="say" value="<{$user['say']}>">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt10 ">
                                个人简介:
                            </div>
                            <div class="col-md-5 mt10 ">
                                <textarea class="form-control" type="text" name="introduction" rows="3"maxlength="100"><{$user['introduction']}></textarea>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt10 ">
                                所在行业:
                            </div>
                            <div class="col-md-5 mt10 ">
                                <input class="form-control" type="text" name="vocation" value="<{$user['vocation']}>">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt10 ">
                                居住地:
                            </div>
                            <div class="col-md-5 mt10 ">
                                <input class="form-control" type="text" name="address" value="<{$user['address']}>">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt10 ">
                                公司或组织:
                            </div>
                            <div class="col-md-5 mt10 ">
                                <input class="form-control" type="text" name="company" value="<{$user['company']}>">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt10 ">
                                职位:
                            </div>
                            <div class="col-md-5 mt10 ">
                                <input class="form-control" type="text" name="position" value="<{$user['position']}>">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt10 ">
                                学校:
                            </div>
                            <div class="col-md-5 mt10 ">
                                <input class="form-control" type="text" name="school" value="<{$user['school']}>">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt10 ">
                                专业:
                            </div>
                            <div class="col-md-5 mt10 ">
                                <input class="form-control" type="text" name="major" value="<{$user['major']}>">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-3 text-right mt10 ">
                                擅长话题:
                            </div>
                            <div class="col-md-5 mt10 ">
                                <input class="form-control" type="text" name="goodat" value="<{$user['goodat']}>">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="col-md-6 col-md-offset-2 mt30 h6">
                                <input class="form-control btn btn-info" type="submit" value="确认修改">
                            </div>
                        </div>
                    </form>

        <!-- Modal -->
    <div class="modal fade" id="headModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="关闭"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">头像上传</h4>
                </div>
                <form action="<{:U('People/headup')}>" method="post" enctype="multipart/form-data">
                    <div class="modal-body">
                        <input type="file" name="imgFile">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="submit" class="btn btn-primary">确认上传</button>
                    </div>
                </form>
            </div>
        </div>
    </div>



                </div>
            </div>
        </div>
    </div>




</block>

<block name="myjs">

    <script type="text/javascript">
        $(function(){
            //头像上传按钮
            $('img').hover(function(){
                $(this).attr('style','cursor:pointer');
                $(this).attr('title','头像上传');
            });























        });
    </script>
    
</block>